package cc.openkit.admin.service.houseRenovationOffer.impl;

import cc.openkit.admin.dao.HouseRenovationOfferMapper;
import cc.openkit.admin.model.HouseRenovationOffer;
import cc.openkit.admin.service.common.impl.BaseServiceImpl;
import cc.openkit.admin.service.houseRenovationOffer.HouseRenovationOfferService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class HouseRenovationOfferServiceImpl extends BaseServiceImpl<HouseRenovationOffer> implements HouseRenovationOfferService {

    private Logger log = Logger.getLogger(this.getClass());

    @Resource
    private HouseRenovationOfferMapper houseRenovationOfferMapper;


    public Integer findCountByPhone(String linkPhone, String currentDay, String renovationType) {
        return houseRenovationOfferMapper.findCountByPhone(linkPhone,currentDay,renovationType);
    }
}
